<?php
switch ($_REQUEST['request']['action']) {
    case 'add':
        include_once BASEURL.'web/gallery/add.php';
        break;
    case 'view':
        include_once BASEURL.'web/gallery/view/layout.php';
        break;
    case 'list':
        include_once BASEURL.'web/gallery/list.php';
        break;
    case 'delete':
        include_once BASEURL.'web/gallery/delete.php';
        break;
    case 'edit':
        include_once BASEURL.'web/gallery/edit.php';
        break;
    default:
        include_once BASEURL.'web/gallery/view/layout.php';
        break;
}
?>